package com.yanfan.zutai.domain;

import com.yanfan.common.annotation.Excel;
import com.yanfan.common.core.domain.BaseEntity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * 云组态组件关联对象 b_device_zt_bind
 *
 * @author ruoyi
 * @date 2022-05-23
 */
@Setter
@Getter
@Data
public class BDeviceZtBind extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id唯一标识
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 设备编号
     */
    @Excel(name = "设备编号")
    private String deviceMac;

    /**
     * 组态guid
     */
    @Excel(name = "组态guid")
    private String ztGuid;

    private String deviceName;

    private Long productId;

    //组态下设备状态
    private String status;
    //组态下设备当天告警数量
    private Integer warnNumber;


    public void setId(Long id) {
        this.id = id;
    }

    public void setDeviceMac(String deviceMac) {
        this.deviceMac = deviceMac;
    }

    public void setZtGuid(String ztGuid) {
        this.ztGuid = ztGuid;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }
}
